algalcommand.event
Class PBRDataEvent

java.lang.Object
  extended by algalcommand.event.PBRDataEvent

public class PBRDataEvent
extends java.lang.Object

An event object representing a bit of data from the PBR


Constructor Summary
PBRDataEvent(Photobioreactor src, org.w3c.dom.Element xml)
          The constructor for making an event
 
Method Summary
 java.lang.String getMeasurementType()
           
 java.lang.String getMeasurementUnit()
           
 Photobioreactor getSource()
           
 java.lang.String getValue()
           
 org.w3c.dom.Element getXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBRDataEvent

public PBRDataEvent(Photobioreactor src,
                    org.w3c.dom.Element xml)
The constructor for making an event

Parameters:
src - The PBR that created this event
xml - The input data that triggered this event
Method Detail

getXML

public org.w3c.dom.Element getXML()
Returns:
The XML tag of the data

getSource

public Photobioreactor getSource()
Returns:
The photobioreactor that generated this data

getMeasurementType

public java.lang.String getMeasurementType()
Returns:
The "type" attribute of the data

getMeasurementUnit

public java.lang.String getMeasurementUnit()
Returns:
The "units" attribute of the data

getValue

public java.lang.String getValue()
Returns:
the "value" attribute of the data